package com.tmt.im.service.controller.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Description TODO
 * @Author wuyi
 * @Date 2024/8/30 16:52
 * @Version 1.0
 **/
@Getter
@Setter
@Tag(name = "更新群成员抢红包控制参数请求对象", description = "更新群成员抢红包控制参数请求对象")
public class UpdateForbidRedPackageRequest implements Serializable {

    @Serial
    private static final long serialVersionUID = 6558626584795898034L;

    @Schema(name = "tid", description = "群组ID")
    @NotNull(message = "群中ID不允许为null")
    @Min(value = 1, message = "群组ID不能小于1")
    private Long tid;

    @Schema(description = "目标群成员的用户ID")
    @NotNull(message = "目标群成员的用户ID不能为null")
    @Min(value = 1, message = "目标群成员的用户ID不能小于1")
    private Long memberId;

    @Schema(description = "抢手气红包状态， true:允许抢红包。false:禁止抢红包")
    @NotNull(message = "抢手气红包状态参数值不能为null")
    private Boolean allow;

}
